<?php
namespace App\Http\Hydrators\User;


use App\Http\Hydrators\Hydrator;
use App\Models\Model;

class UserHydrator extends Hydrator
{

    public function validation($action)
    {
        $params = app('request')->all();
        $this->validate($params,$this->$action());
        return $params;
    }


    protected function clearUserCache()
    {
        return [
            'username'=> 'required',
        ];
    }


    protected function getCreateRules()
    {
        // TODO: Implement getCreateRules() method.
    }

    protected function getUpdateRules()
    {
        // TODO: Implement getUpdateRules() method.
    }


    protected function getDefaultRules()
    {
        // TODO: Implement getDefaultRules() method.
        return [

        ];
    }


    protected function hydrateForCreate(array $data, Model $model)
    {
        // TODO: Implement getUpdateRules() method.
    }


    protected function hydrateForUpdate(array $data, Model $model)
    {
        // TODO: Implement hydrateForUpdate() method.
    }

    protected function hydrateForDefault(array $data)
    {
        // TODO: Implement hydrateForCheck() method.

    }

}